home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 48
/
PC Gamer IT CD 48 1-2.iso
/
age2
/
AoE2demo.exe
/
1033
/
CABFILE
/
MSGAME.CAB
/
Data
/
gamedata.drs
/
Unnamed File 000004.bina
< prev
next >
Wrap
Text File
|
1999-10-01
|
3KB
|
158 lines
(defrule
(true)
=>
(set-strategic-number sn-number-boat-explore-groups 0)
(set-strategic-number sn-dock-defend-priority 1)
(disable-self)
)
(defrule
(unit-type-count galley-line > 0)
=>
(set-strategic-number sn-number-boat-explore-groups 1)
(disable-self)
)
;make docks
(defrule
(building-type-count-total dock == 0)
(building-type-count-total lumber-camp > 0)
(nand
(goal rush-control RUSHING)
(and
(and
(building-type-count-total barracks == 0)
(building-type-count-total archery-range == 0)
)
(and
(building-type-count-total stable == 0)
(building-type-count-total castle == 0)
)
)
)
(can-build dock)
=>
(build dock)
)
(defrule
(goal 1 10)
(current-age >= feudal-age)
(wood-amount > 400)
(building-type-count-total dock < 2)
(can-build-with-escrow dock)
=>
(release-escrow wood)
(build dock)
)
(defrule
(current-age >= castle-age)
(wood-amount > 500)
(building-type-count-total dock < 2)
(can-build-with-escrow dock)
=>
(release-escrow wood)
(build dock)
)
(defrule
(goal 1 10)
(current-age == imperial-age)
(wood-amount > 500)
(building-type-count-total dock < 3)
(can-build-with-escrow dock)
=>
(release-escrow wood)
(build dock)
)
;build fishing ships in dark age
#load-if-not-defined DEATH-MATCH
(defrule
(current-age == dark-age)
(building-type-count-total lumber-camp > 0)
(civilian-population < civ-dark)
(or
(unit-type-count-total fishing-ship < five-percent-pop)
(and
(goal rush-control BOOMING)
(unit-type-count-total fishing-ship < ten-percent-pop)
)
)
(nand
(goal rush-control RUSHING)
(building-type-count-total barracks == 0)
)
(can-train fishing-ship)
=>
(train fishing-ship)
)
;feudal boats
(defrule
(goal secondary-build 1)
(current-age == feudal-age)
(building-type-count-total blacksmith > 0)
(civilian-population < civ-feudal)
(unit-type-count-total fishing-ship < ten-percent-pop)
(unit-type-count-total galley > 0)
(can-train fishing-ship)
=>
(train fishing-ship)
)
;castle boats
(defrule
(goal secondary-build 1)
(building-type-count-total siege-workshop > 0)
(civilian-population < civ-castle)
(unit-type-count-total fishing-ship < ten-percent-pop)
(or
(current-age == castle-age)
(and
(current-age == imperial-age)
(current-age-time < 2400)
)
)
(can-train fishing-ship)
=>
(train fishing-ship)
)
#end-if
(defrule
(population >= pop-cap)
(unit-type-count fishing-ship > ten-percent-pop)
=>
(delete-unit fishing-ship)
)
(defrule
(population >= pop-cap)
(current-age == imperial-age)
(current-age-time > 2400)
(unit-type-count fishing-ship > 0)
=>
(delete-unit fishing-ship)
)
;start the run-through for military ships & rulers of the sea
(defrule
(not (goal 2 0) )
=>
(set-goal 2 0)
)
(defrule
(current-age >= castle-age)
(cc-players-unit-type-count every-enemy galley-line < five-percent-pop)
(cc-players-unit-type-count every-enemy cannon-galleon-line < five-percent-pop)
(cc-players-unit-type-count every-enemy fire-ship-line < five-percent-pop)
(cc-players-unit-type-count every-enemy longboat-line < five-percent-pop)
=>
(set-goal 2 2)
)